from django.conf.urls import url
from django.contrib import admin

from booktest import views

urlpatterns = [

    #URL（）第一个参数是正则匹配规则，第二个参数是匹配成功后执行的视图函数

    url(r'^books/$',views.BookListView.as_view()),
    url(r'^books/(?P<pk>\d+)$',views.BookDetailView.as_view())


]